<?php
defined('APPLICATION_NAME') or define('APPLICATION_NAME', 'application');
defined('FRAME_PATH')   or define('FRAME_PATH',     str_replace('\\', '/', __DIR__.'/'));
defined('APP_PATH')     or define('APP_PATH',       str_replace('\\', '/',dirname(__DIR__).'/'));
defined('APP_DEBUG')    or define('APP_DEBUG',      false);
defined('CONFIG_PATH')  or define('CONFIG_PATH',    APP_PATH.'config/');
defined('RUNTIME_PATH') or define('RUNTIME_PATH',   APP_PATH.'runtime/');


//核心框架
require_once FRAME_PATH.'Core.php';
//加载函数库
require_once APP_PATH.'helper.php';
//实例化核心类
//外观模式，最少知识原则
$core = new \wlcat\http\Core();
$core->run();